home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HyperLib 1997 Winter - Disc 1
/
HYPERLIB-1997-Winter-CD1.ISO.7z
/
HYPERLIB-1997-Winter-CD1.ISO
/
オンラインウェア
/
UTIL
/
TouchMe 1.1.1.sit
/
touchMe 1.11 Folder
/
scripts
/
sample 4
< prev
next >
Wrap
Text File
|
1996-08-08
|
666b
|
20 lines
-- Sample AppleScripts for touchMe, 1996 (C) Mizutori Tetsuya
-- An applet to check the date time stamp of the given file,
-- and if the stamp is wrong then correct it to have the same date.
-- Let's start to select a target file!
set theFile to (choose file)
tell application "touchMe"
activate
set theStamp to fetch theFile
set theCreationDate to the creation date of theStamp
set theModificationDate to the modification date of theStamp
if theCreationDate comes after theModificationDate then
beep
set prefs creation to {enabled:false}
set prefs modification to {enabled:true, flag:exact, value:theCreationDate}
touch theFile
end if
quit
end tell